//
// Created by yonghu0 on 25-10-23.
//

#include "AnnouncementList.h"
#include "MongoDataBase.h"

AnnouncementList::AnnouncementList()
{
}

AnnouncementList::~AnnouncementList()
{
}

AnnouncementList *AnnouncementList::GetInstance()
{
    static AnnouncementList announcementlist;
    return &announcementlist;
}

Json::Value AnnouncementList::SelectAnnouncementList(Json::Value &queryjson)
{
    return MoDB::GetInstance()->SelectAnnouncementList(queryjson);
}

Json::Value AnnouncementList::SelectAnnouncementListByAdmin(Json::Value &queryjson)
{
    return MoDB::GetInstance()->SelectAnnouncementListByAdmin(queryjson);
}

Json::Value AnnouncementList::SelectAnnouncement(Json::Value &queryjson)
{
    return MoDB::GetInstance()->SelectAnnouncement(queryjson);
}

Json::Value AnnouncementList::SelectAnnouncementByEdit(Json::Value &queryjson)
{
    return MoDB::GetInstance()->SelectAnnouncementByEdit(queryjson);
}

Json::Value AnnouncementList::InsertAnnouncement(Json::Value &queryjson)
{
    return MoDB::GetInstance()->InsertAnnouncement(queryjson);
}

Json::Value AnnouncementList::UpdateAnnouncement(Json::Value &queryjson)
{
    return MoDB::GetInstance()->UpdateAnnouncement(queryjson);
}

Json::Value AnnouncementList::DeleteAnnouncement(Json::Value &queryjson)
{
    return MoDB::GetInstance()->DeleteAnnouncement(queryjson);
}

Json::Value AnnouncementList::UpdateAnnouncementComments(Json::Value &queryjson)
{
    return MoDB::GetInstance()->UpdateAnnouncementComments(queryjson);
}
